package com.kds.changzhou.utility;

import lombok.extern.slf4j.Slf4j;
import org.apache.commons.codec.digest.DigestUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class ProtocolService {

    @Value("${protocol.md5.salt}")
    private String salt;


    public String md5Sequence(String input) {
        String rs = DigestUtils.md5Hex(salt+input );
        return rs;
    }


    public String getSalt() {
        return salt;
    }


}
